<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        a{
            display: inline-block;
            width: 120px;
            height: 70px;
            background-color: green;
            /* 如果想让单行文本垂直居中，可以设置行高等于高度 */
            line-height: 70px;
            /* 文字水平居中 */
            text-align: center;
            color: orange;
            text-decoration: none;
        }

        a:hover{
            background-color: yellow;
            color: brown;
        }
    </style>
</head>
<body>
    <a href="">公司首页</a>
    <a href="">商品页面</a>
    <a href="">公司简介</a>
    <a href="">人才招聘</a>
</body>
</html>